package com.minelx.scriptbuilder.script.operation;

import com.minelx.scriptbuilder.script.IVariable;
import com.minelx.scriptbuilder.script.attribute.value.IAttribute;

public class AssignOperation implements IOperation {

	private final IVariable assigned;

	private final IAttribute value;

	public AssignOperation(IVariable assigned, IAttribute value) {
		this.assigned = assigned;
		this.value = value;
	}

	@Override
	public void execute() {
		assigned.assigned(value);
	}
}
